<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //  工厂模式
    function createPhone(){
        const Phone1={
            console:'白色',
            size: 10,
            String: '200g',
            call:function(){},
            sms:function(){},

        }
        return Phone1;
    }
    const p1= createPhone()
    const p2= createPhone()
    console.log(p1)
    console.log(p2)

</script>

vv
</html>